<?php get_header(); ?>

<div class="cols">
    <div class="col_2-3 cont_holder">

    <?php if( have_posts() ): ?>
	
        <?php while( have_posts() ): the_post(); ?>
            <?php get_template_part( 'content', get_post_format() ); ?>
        <?php endwhile; ?>
	
        <?php 
        if( function_exists('wp_pagenavi') ) {
            wp_pagenavi( '<div class="paginator inblog">', '</div>', 'pages');
        }else {
            wp_link_pages(
                array(
                    'before'        => '<div class="paginator inblog"><div class="pages">',
                    'after'         => '</div></div>',
                    'pagelink'      => '<span>%</span>'
                )
            );
        }
        ?>
    
    <?php else:?>
	
        <p><?php _e( 'Sorry, but search result is empty.', LANGUAGE_ZONE ); ?></p>

    <?php endif; ?>

    </div>
    
    <?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>